package com.frinder.hadoop.hbase.original;

import org.apache.hadoop.hbase.client.Connection;

/**
 * @author frinder
 * @date 2018/6/30
 * @Description: ${todo}
 */
public interface ConnectionProvider {

    /**
     * 从池中获取 conn
     *
     * @return
     */
    Connection getConn();

    /**
     * 返回 conn 到池
     *
     * @param conn
     */
    void returnConn(Connection conn);
}
